# -*- coding: utf-8 -*-
'''
ytb task log
author: qkhe 2014/02/28
'''

import json

class MyJson:
	def __init__(self):
		pass;
	
	def jsonDumps(self, jsonStr):
		try:
			data = json.dumps(jsonStr);
			return True, data
		except Exception,e:
			return False, ''

	def jsonLoads(self, jsonDict):
		try:
			data = json.loads(jsonDict);
			return True, data
		except Exception,e:
			return False, ''
		
		
